package com.ls.spring;

import com.ls.spring.core.AnnotationConfigApplicationContext;
import com.ls.spring.demo.DemoConfig;
import com.ls.spring.demo.biz.Userbiz;
import com.ls.spring.demo.web.UserAction;
import org.junit.Test;

import java.net.URISyntaxException;

public class DemoTest01 {

    @Test
    public void test() throws URISyntaxException {
        AnnotationConfigApplicationContext anocxt =
                new AnnotationConfigApplicationContext(DemoConfig.class);

        Userbiz ubiz = anocxt.getBean(Userbiz.class);
        ubiz.say();
    }
}
